#include "PreCompile.hpp"

int main()
{
  try
  {
    Glib::init();
    Glib::thread_init();
    
    BuildNG::init_libbuildng("Testfiles/Win32Settings.xml");
    BuildNG::PerlTask::init();

    BuildNG::PerlTask::shutdown();
    BuildNG::shutdown_libbuildng();

    return 0;
  }
  catch(const std::exception &err)
  {
    std::cout << std::string(err.what()) << std::endl;
    assert(!"unhandled exception");
  }
  catch(const Glib::Exception &err)
  {
    std::cout << "The following exception was thrown: " << err.what() << std::endl;
    assert(!"unhandled exception");
  }
  catch(...)
  {
    assert(!"unhandled exception of a type different from std::exception");
  }
}
